import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'//pinia导入createPinia

const pinia = createPinia()//创建Pinia实例
const app = createApp(App)//创建Vue应用
app.use(router)// 使用路由插件
app.use(ElementPlus)
app.use(pinia)//使用Pinia插件
app.mount('#app') //挂载应用